package com.bifang.common.constant.enums.common;
/** 办件排序字段转化枚举 */
public enum GetApplyTasksEnum {
    OPERATION_NAME("operationName", "OPERATION_NAME"),
    NAME_("name", "NAME_"),
    STATUS("statusName", "STATUS"),
    APPLICANT_TIME("applicantTime", "applicantTime"),
    ACT_NAME("actName", "ACT_NAME"),
    AUTH_TIME("authTime", "AUTH_TIME"),
    AUTH_STATUS("authStatusName", "AUTH_STATUS"),
    OP_TIME("opTime", "OP_TIME"),
    APPLICANT_NAME("applicantName", "APPLICANT_NAME"),
    APPLICANT_ID("applicantId", "APPLICANT_ID"),
    APPLICANT_TYPE("applicantType", "APPLICANT_TYPE"),
    REMARKS("remarks", "REMARKS");

    private String type;
    private String text;

    GetApplyTasksEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static GetApplyTasksEnum getByType(String type) {
        for (GetApplyTasksEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
